﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataAccess
{
    public class DataAccessOrder
    {
        public static List<Model.OrderDetail> GetOrdersForBranch(string branchId)
        {
            SSDDEntities.Instance.DiscardChanges();
            return (from p in SSDDEntities.Instance.OrderDetails
                    where p.Order.BranchRemoteId == branchId
                    && p.Order.Delivered==false
                    select p).ToList();
        }
    }
}
